package com.wang.yygh.repository;

import com.wang.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalRepository  extends MongoRepository<Hospital,String> {
    //Spring Data 中已经集成封装好了方法，注意大小写、get、read、find书写规范即可
    Hospital getHospitalByHoscode(String hoscode);
}
